package com.cute4j.diffs.cuteswing;

import com.cute4j.swing.Frame;
import com.cute4j.swing.Label;
import com.cute4j.swing.Swing;

/**
 * Hello World.
 */
public class HelloWorld {

  public static void main(String[] args) {
    // No EDT stuff <-- DIFF+
    // Everything is done in the GUI thread implicitly
    Frame frame = new Frame();
    frame.setDefaultCloseOperation(Frame.EXIT_ON_CLOSE);
    frame.add(new Label("Hello World"));
    frame.pack();
    frame.setVisible(true);
    Swing.startEventLoop(); // <-- DIFF-
  }

}
